﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using EbbinghausWord.Entities;

namespace EbbinghausWord.BLL
{
    /// <summary>
    /// 通用工具类
    /// </summary>
    public static class Common
    {
        /// <summary>
        /// 将列表中的元素添加到队列中
        /// </summary>
        /// <param name="wordList"></param>
        /// <param name="queue"></param>
        [Obsolete]
        public static void AddToQueue(this List<WordEntity> wordList, Queue<WordEntity> queue)
        {
            foreach (var wordEntity in wordList)
            {
                queue.Enqueue(wordEntity);
            }
        }
    }
}
